package com.yantong.service;


import com.yantong.pojo.GoodsPic;
import com.yantong.utils.PageUtils;

/**
 * @author
 * @date 2018/8/29.11:45
 */
public interface GoodsPicService {

    /**
     * 主题列表，分页
     * @param advName
     * @param centreId
     * @param offset
     * @param limit
     * @return
     */
    PageUtils<GoodsPic> listAdverts(String advName, Long centreId, int offset, int limit);

    /**
     * 主题保存
     * @param advert
     * @return
     */
    int saveAdvert(GoodsPic advert);

    /**
     *
     * @param advertId
     * @return
     */
    GoodsPic getByKey(Long advertId);

    /**
     * 主题修改
     * @param advert
     * @returnint
     */
     int updateAdvert(GoodsPic advert);

    /**
     * 删除主题
     * @param advertId
     * @return
     */
    int removeAdvert(Integer advertId);

    /**
     * 根据商户获取主图框
     * @param centreId
     * @return
     */
    GoodsPic getIszhutihuakuang(Long centreId);
}
